﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="denglu.aspx.cs" Inherits="LJSheng.Web.denglu" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>经销商登录</title>
    <link href="/css/houtai/layout.css" rel="stylesheet" type="text/css" />
    <link href="/css/houtai/login.css" rel="stylesheet" type="text/css" />
        <script type="text/javascript">
        //创建当前日期＋随机数
        function getURLDateTimePar() {
            var today = new Date();
            var intYear = "" + today.getYear() + "";
            var intMonth = "" + today.getMonth() + 1 + "";
            var intDay = "" + today.getDate() + "";
            var intHours = "" + today.getHours() + "";
            var intMinutes = "" + today.getMinutes() + "";
            var intSeconds = "" + today.getSeconds() + "";

            var RandomNumber = getRandomNumber();
            RandomNumber = "" + RandomNumber + "";
            return intYear + intMonth + intDay + intHours + intMinutes + intSeconds + RandomNumber;
        }
        //生成随机数
        function getRandomNumber() {
            return parseInt(Math.random() * (10000 - 1 + 1) + 1);
        }
        function checkData() {
            if (document.getElementById("txtusername").value == "") {
                alert("请输入用户名");
                return false;
            }
            if (document.getElementById("txtpassword").value == "") {
                alert("请输入密码");
                return false;
            }
            if (document.getElementById("txtcode").value == "") {
                alert("请输入验证码");
                return false;
            }
            }
            function getQueryString(name) {
                var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
                var r = window.location.search.substr(1).match(reg);
                if (r != null) return unescape(r[2]); return null;
            }
            if (getQueryString("msg") != null) {
                alert(getQueryString("msg"));
            }
        </script>
</head>
<body class="login-bg">
    <form id="form1" runat="server">
        <div class="main ">
            <!--登录-->
            <div class="login-dom login-max">
                <div class="logo text-center">
                    <a href="#">
                       
                    </a>
                </div>
                <div class="login container " id="login">
                    <p class="text-big text-center logo-color">
                        经销商系统
                    </p>
                    <p class="text-big text-center logo-color">
                        
                    </p>
                    <div class="login-box border text-small">
                        <div class="name border-bottom">
                           <input type="text" id="txtusername" runat="server" placeholder="请填写帐号信息" />
                        </div>
                        <div class="pwd">
                             <input type="password" id="txtpassword" runat="server" placeholder="请填写帐号密码" />
                        </div>
                        <br />
                         <div class="name border-bottom">
                            <input type="text" id="txtcode" runat="server" style="width:58px;" placeholder="验证码" /><img alt="点击更换" width="60" height="25" src="/plugins/VerifyCode.aspx" onclick="this.src=this.src + '?' + getURLDateTimePar();" id="imgVerify" title="看不清？请点击图片更换"  style="cursor: pointer;" />
                        </div>
                    </div>
                    <asp:Button class="btn text-center login-btn" ID="Login" runat="server" Text="登录" OnClientClick="return checkData();" OnClick="Login_Click" />
                    <div class="forget">
                       
                    </div>
                </div>
            </div>

            <div class="footer text-center text-small ">
                Copyright 2013-2022 半半工作室 版权所有
                <span class="margin-left margin-right">|</span>
            </div>
            <div class="popupDom">
                <div class="popup text-default">
                </div>
            </div>
        </div>
    </form>
</body>
</html>
